<template>
    <div>歌谣孩子就有汽车{{geyao.car}}和书{{geyao.book}}</div>
    <div>歌谣孩子就有玩具{{geyaochild.toy}}和书{{geyaochild.book}}</div>
    <button @click="emit('give',geyaochild)">送歌谣爸爸</button>
</template>
<script setup>
import {defineProps,defineEmits,ref} from 'vue'
defineProps(['geyao'])
var geyaochild=ref({
    toy:'奥特曼',
    book:'漫画书',
    pingban:'平板'
})
const emit=defineEmits('give',geyaochild)

</script>